package com.three.service;

import com.three.entity.MobileCard;
import com.three.DAO.impl.MobileCardDAOImpl;
import com.three.DAO.impl.ServicePackageDAOImpl;
import com.three.entity.MobileCard;
public class showAmountDetail {
	 ServicePackageDAOImpl spdi=new ServicePackageDAOImpl();
	 MobileCardDAOImpl mcdi=new MobileCardDAOImpl();
	 double sum;
	 public void showAmountDetail(MobileCard mobilecard){
		 	System.out.println("******本月账单查询*******");
		 	System.out.println("您的卡号:"+mobilecard.getCardNumber()+"当月账单：");
		 	mcdi.selectMobileCard(mobilecard);
		 	System.out.println("套餐资费："+mobilecard.getServicePackage().getPrice());
		 	sum=mobilecard.getServicePackage().getPrice()+mobilecard.getConsumAmount();
		 	System.out.println("合计："+sum);
		 	System.out.println("账户余额："+mobilecard.getMoney());

}
	
}
